<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="language" content="en" />

		<!-- blueprint CSS framework -->
		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css"/>
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-1.7.2.min.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap-tooltip.js" type="text/javascript"></script>
		<script src="//connect.facebook.net/en_US/all.js" type="text/javascript"></script>
		<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	</head>

	<body style="overflow: hidden;">
		<div id="fb-root"></div>
		<div class="container" id="container">
			<div>
				<h1><?php echo CHtml::encode(Yii::app()->name); ?></h1>
			</div>

			<div>
				<div class="span810">
					<?php
					$this->widget('zii.widgets.CMenu', array(
						'htmlOptions' => array('class' => 'tabs'),
						'items' => array(
							array('label' => 'Trang chủ', 'url' => array('site/index')),
							array('label' => 'Sản phẩm', 'url' => array('site/items')),
							array('label' => 'Cửa hàng', 'url' => array('site/shops')),
							$this->menus
						),
					));
					?>
				</div>
			</div>
			<!-- mainmenu -->

			<?php echo $content; ?>

					<div class="span12">
						<footer>
							<p>Copyright &copy; <?php echo date('Y'); ?> by Yêu handmade. All Rights Reserved.</p>
				</footer>
			</div>

		</div><!-- page -->
		<script>
			social_app_id = "297726646982495";
			FB.init({
				appId  : social_app_id,
				status : true, // check login status
				cookie : true, // enable cookies to allow the server to access the session
				xfbml  : true,  // parse XFBML
				oauth  : true
			});
			FB.Canvas.setAutoResize(90);
			FB.Canvas.scrollTo(0, 0);
		</script>
	</body>
</html>